﻿/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fckplugin.js
 * 	Plugin to open/save documents.
 * 
 * File Authors:
 * 		GreggP (greggp@pobox.com)
 */


// Register the various commands.
FCKCommands.RegisterCommand( 
							'LFOGetFile',
							new FCKDialogCommand( 'LFOGetFile', FCKLang.LFOGetFileDlgTitle,
												 FCKPlugins.Items['LFO'].Path + 'LFO_GetFile.html', 340, 190 ) ) ;

FCKCommands.RegisterCommand( 
							'LFOSaveFileAs',
							new FCKDialogCommand( 'LFOSaveFileAs', FCKLang.LFOSaveFileAsDlgTitle,
												 FCKPlugins.Items['LFO'].Path + 'LFO_SaveFileAs.html', 340, 190 ) ) ;


// Create the toolbar  buttons.
var oLFOGetFileItem = new FCKToolbarButton( 'LFOGetFile', FCKLang.LFOGetFileBtn ) ;
oLFOGetFileItem.IconPath = FCKPlugins.Items['LFO'].Path + 'GetFile.gif' ;
FCKToolbarItems.RegisterItem( 'LFOGetFile', oLFOGetFileItem ) ;

var oLFOSaveFileAsItem = new FCKToolbarButton( 'LFOSaveFileAs', FCKLang.LFOSaveFileAsBtn ) ;
oLFOSaveFileAsItem.IconPath = FCKPlugins.Items['LFO'].Path + 'SaveFileAs.gif' ;
FCKToolbarItems.RegisterItem( 'LFOSaveFileAs', oLFOSaveFileAsItem ) ;



